function login() {
    let password = $('#password').val();
    let user_number = $('#user').val();

    if (user_number == 'admin') {
        $.ajax({
            type: 'POST',
            url: '/admin/login/login',
            data: {
                user_number: user_number,
                password: password,
            },
            dataType: 'json',
            success: function (data) {
                console.log(data)
                if (data.err == 0) {
                    window.location.href = data.data.url
                } else {
                    alert(data.msg);
                }
            }
        })
    } else if (user_number.length > 5 && user_number.length < 14) {
        $.ajax({
            type: 'POST',
            url: '/admin/login/tealogin',
            data: {
                user_number: user_number,
                password: password,
            },
            dataType: 'json',
            success: function (data) {
                console.log(data)
                if (data.err == 0) {
                    window.location.href = data.data.url
                } else {
                    alert(data.msg);
                }
            }
        })
    } else if (user_number.length >= 15) {
        $.ajax({
            type: 'POST',
            url: '/admin/login/stulogin',
            data: {
                user_number: user_number,
                password: password,
            },
            dataType: 'json',
            success: function (data) {
                console.log(data)
                if (data.err == 0) {
                    window.location.href = data.data.url
                } else {
                    alert(data.msg);
                }
            }
        })
    }
}